﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;


namespace EShop.Common
{
    public class AsyncMethod:System.EventArgs
    {
        public delegate void ControlsEndueValueEventHandler(object sender, EndueValueEventArgs e);

        public class EndueValueEventArgs
        {
            private object _ControlName;
            /// <summary>
            /// 空间名称
            /// </summary>
            public object ControlName
            {
                get { return _ControlName; }
                set { _ControlName = value; }
            }

            private object _SetValue;
            /// <summary>
            /// 设置的值
            /// </summary>
            public object SetValue
            {
                get { return _SetValue; }
                set { _SetValue = value; }
            }

            private ControlsEndueValueEventHandler _OnControlEndueValue;
            /// <summary>
            /// 委托
            /// </summary>
            public ControlsEndueValueEventHandler OnControlEndueValue
            {
                get { return _OnControlEndueValue; }
                set { _OnControlEndueValue = value; }
            }

            public EndueValueEventArgs(object _ControlName, object _SetValue, ControlsEndueValueEventHandler _OnControlEndueValue)
            {
                this._ControlName = _ControlName;
                this._SetValue = _SetValue;
                this._OnControlEndueValue = _OnControlEndueValue;
            }

            private bool _Enable = true;
            /// <summary>
            /// 是否启用
            /// </summary>
            public bool Enable
            {
                get { return _Enable; }
                set { _Enable = value; }
            }

            private bool _Visibile = true;
            /// <summary>
            /// 是否可见
            /// </summary>
            public bool Visibile
            {
                get { return _Visibile; }
                set { _Visibile = value; }
            }

            private int _Index = 0;
            /// <summary>
            /// 索引
            /// </summary>
            public int Index
            {
                get { return _Index; }
                set { _Index = value; }
            }
        }
    }
}
